package com.code.soulnetty.modbus.biz.resp;

import com.code.soulnetty.modbus.client.message.ProtocolResponse;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Getter
@Setter
@ToString
public class ProtocolReadResponse extends ProtocolResponse {
    private List<CommonDeviceData> data;

    /**
     * 记录批量请求中单个测点的异常信息
     * {"device_guid": {"point_code": "err_msg"}}
     */
    @JsonIgnore
    private Map<String, Map<String, String>> errMsg = new HashMap<>();
}
